import com.lee.ssm.domain.Product;
import com.lee.ssm.service.IProductService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
public class Demo {
    @Autowired
    private IProductService iProductService;
    @Test
    public void run() throws Exception {
//        List<Product> all = iProductService.findAll();
//        System.out.println(all.get(0).getProductStatus());
//        System.out.println(all.get(0).getProductStatusStr());
    }
}
